<?php
$this->breadcrumbs = array(
  '广告' =>$this->rewriteCreateUrl('admin', array('WebAdsmanage[sort]' => $model->sort)),
    '查看',
);
?><div class="box corners shadow">
    <div class="box-header">
        <h2>查看→广告 #<?php echo $model->title; ?></h2></h2>
        <div class="box-header-ctrls">	
            <a href="javascript:void(null);" title="" class="close"><!-- --></a>
        </div>
    </div>
    <div class="box-content" id="contacts-1a">
        <div class="inbox-sf">
            <?php
            echo CHtml::link('<span>删除</span>', '#', array(
                'submit' => array('delete'),
                'class' => 'button black fr',
                'confirm' => '您确定要删除吗?'
            ));
            ?>          
            <a class="button black fr"  href=" <?php echo $this->rewriteCreateUrl('create', array('WebAdsmanage[sort]'=> $model->sort )) ?>">
                <span>创建</span>
            </a>
            <a class="button black fr"  href=" <?php echo $this->rewriteCreateUrl('update', array('WebAdsmanage[sort]'=>$model->sort, 'id'=>$model->id)) ?>">
                <span>编辑</span>
            </a>
            <a class="button black fr"  href=" <?php echo $this->rewriteCreateUrl('admin', array('WebAdsmanage[sort]' => $model->sort)) ?>">
                <span>管理</span>
            </a>
        </div>
        <?php
        $this->widget('zii.widgets.CDetailView', array(
            'data' => $model,
            'cssFile' => '',
            'htmlOptions' => array('class' => 'tablelist'),
            'attributes' => array(
                'id',
                'title',
                array(
                    'name' => 'images',
                    'type' => 'raw',
                    'value' => '<img src="/' . $model->images . '">',
                ),
                'url',

                array(
                    'name' => 'state',
                    'value' => webAdsManage::model()->state_array[$model->state],
                ),
                 array(
                    'name' => 'sort',
                     'value' => WebAdsmanageSort::model()->getNameById($model->sort, "ads_name"),
                ),
                'note',
                'sort_order',
                'addtime',
            ),
        ));
        ?>
    </div>
</div>